﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.LightBakingOutput
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using UnityEngine.Bindings;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Struct describing the result of a Global Illumination bake for a given light.</para>
  /// </summary>
  [NativeHeader("Runtime/Camera/SharedLightData.h")]
  public struct LightBakingOutput
  {
    /// <summary>
    ///   <para>In case of a LightmapBakeType.Mixed light, contains the index of the light as seen from the occlusion probes point of view if any, otherwise -1.</para>
    /// </summary>
    public int probeOcclusionLightIndex;
    /// <summary>
    ///   <para>In case of a LightmapBakeType.Mixed light, contains the index of the occlusion mask channel to use if any, otherwise -1.</para>
    /// </summary>
    public int occlusionMaskChannel;
    /// <summary>
    ///   <para>This property describes what part of a light's contribution was baked.</para>
    /// </summary>
    [NativeName("lightmapBakeMode.lightmapBakeType")]
    public LightmapBakeType lightmapBakeType;
    /// <summary>
    ///   <para>In case of a LightmapBakeType.Mixed light, describes what Mixed mode was used to bake the light, irrelevant otherwise.</para>
    /// </summary>
    [NativeName("lightmapBakeMode.mixedLightingMode")]
    public MixedLightingMode mixedLightingMode;
    /// <summary>
    ///   <para>Is the light contribution already stored in lightmaps and/or lightprobes?</para>
    /// </summary>
    public bool isBaked;
  }
}
